package com.share.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 用户状态
 */
@Getter
public enum UserStatusEnum {
    ACTIVE(1, true, "活跃"),
    DISABLED(2, false, "禁用"),
    UNVERIFIED(3, false, "未验证");

    @EnumValue
    private final Integer code;
    private final Boolean value;
    private final String desc;

    UserStatusEnum(Integer code, Boolean value, String desc) {
        this.code = code;
        this.value = value;
        this.desc = desc;
    }
}